# 数据库配置，可以配置多个
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'POOL_OPTIONS': {
            'POOL_SIZE': 10,
            'MAX_OVERFLOW': 10,
            'RECYCLE': 60 * 60
        },
        'NAME': 'wex',
        'USER': 'root',
        'PASSWORD': '123456',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
}

# 缓存配置
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": 'redis://127.0.0.1:6379/1',
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
        }
    }
}

# 异步任务celery中间件配置
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/11'

# 后端服务域名
HOST = ''

# 前端域名
WEBSITE_URL = ''
